package com.tju.shortlink.admin.common.enums;

import com.tju.shortlink.admin.common.convention.errorcode.IErrorCode;

public enum UserErrorCodeEnum implements IErrorCode {

    USER_NULL("B000200", "用户记录不存在"),

    USER_EXIST("B000201", "用户记录已存在"),

    USER_NAME_EXIST("B000202", "用户名已存在"),

    USER_SAVE_ERROR("B000203", "用户名记录失败"),

    USER_UPDATE_ERROR("B000204", "用户名信息修改失败");


    private final String code;

    private final String message;

    UserErrorCodeEnum(String code, String message){
        this.code = code;
        this.message = message;
    }


    /**
     * 错误码
     */
    @Override
    public String code() {
        return this.code;
    }

    /**
     * 错误信息
     */
    @Override
    public String message() {
        return this.message;
    }
}
